import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: () => import('@/layouts/BaseLayout.vue'),
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        props: true,
        meta: { title: '首页', icon: 'i-tdesign-houses' },
      },
      {
        path: '/home/notice',
        component: () => import('@/views/home/UserNoticeListPage.vue'),
      },
      {
        path: '/home/userInfo',
        name: 'userInfo',
        component: () => import('@/views/home/UserInfoPage.vue'),
      },
      {
        path: '/home/userPwdModify',
        name: 'userPwdModify',
        component: () => import('@/views/home/UserPwdModifyPage.vue'),
      },
    ],
  },
]
export default routes
